<?php
namespace Home\Controller;
use Think\Controller;
class IndexController extends Controller {
    public function index(){
        $data = M('friendly')->select();
        
           $data1 = M('honor')->select();
            $data2 = M('limage')->select();
           $arr = [];
           foreach ($data1 as $k => $v) {
                $arr[$k] = $v['himage'];
           }
               // dump($arr);exit;

           $this->assign('list',$data2);
           $this->assign('list1',$arr);
           $this->assign('data',$data);
            $this->display();
    }
}